package com.example.demo.generator.scaffold.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 脚手架 ZIP 生成记录。
 */
@Getter
@Setter
@TableName("scaffold_generation_log")
public class ScaffoldGenerationLog {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("module_name")
    private String moduleName;

    @TableField("module_base_path")
    private String moduleBasePath;

    @TableField("base_package")
    private String basePackage;

    @TableField("enable_blockchain")
    private Boolean enableBlockchain;

    @TableField("chain_fields_count")
    private Integer chainFieldsCount;

    @TableField("zip_file_name")
    private String zipFileName;

    @TableField("download_url")
    private String downloadUrl;

    @TableField("request_ip")
    private String requestIp;

    @TableField("request_payload")
    private String requestPayload;

    @TableField("created_at")
    private LocalDateTime createdAt;
}
